package com.seal.yoyoshop.service;

import com.seal.yoyoshop.bin.Goods;
import com.seal.yoyoshop.bin.Order;

import java.util.List;

public interface OrderService {
    void addGoodsToOrder(Goods goods, Order order);

    boolean lessonGoodsToOrder(Goods goods, Order order);

    boolean DeleteGoodsToOrder(Goods goods, Order order);

    boolean addOrder(Order order);

    int getIdByOrder(Order order);

    Order getOrderById(int orderId);

    boolean updateOrder(Order order);

    List<Order> getOrderByUserId(Integer userid);

    List<Order> getOrderList(Integer page, Integer size);

    long getOrderCount();

    List<Order> getOrderList(Integer status, Integer page, Integer size);

    long getOrderCount(Integer status);
}
